<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="js/rem.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="css/userComplete.css"/>
		<link rel="stylesheet" type="text/css" href="fonts/iconfont.css"/>
		<script src="js/axios.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<script type="text/javascript">
			window.onload=function(){
				let token=localStorage.getItem('token')
				let UserMassegetApi='http://15637237221.wicp.vip/yh/mine/showUserInformation.do'
				let userImg=document.querySelector('.user-wrap')
				let userName=document.querySelector('.userName')
				console.log(userImg)
				axios.post(UserMassegetApi,{
					token
				}).then(res=>{
					console.log(res.data.info);
					let obj=res.data.info
					
					let html=''
					html=`<img src="${obj.userImgUrl}">`
					userImg.innerHTML=html;
					let userName=document.querySelector('.userName')
					
					let html1=''
					html1=`${obj.username}`
					userName.innerHTML=html1;
					
				})
			}
			
			
			
		</script>
		<div class="con">
			<header>
				<img src="img/tou.gif">
				<p><a href="index-rec.html" class="iconfont icon-left"> <a><span>完善资料</span></p>
			</header>
			<main>
				<div class="user-top">
					<div class="userImg">
					<div class="user-wrap">
						<!-- <img src="img/head%20(2).png" > -->
					</div>
					
					</div>
					<p>点击头像可更换头像</p>
				</div>
				<h3>基础资料</h3>
				<ul>
					<li>
						<a href="updateUserxx.html"><span>昵称</span>
						
						<span class="userName"><!-- 我叫不高兴 --></span></a>
						
					</li>
					<li>
						<a href=""><span>性别</span>
						
						<span>保密</span></a>
						
					</li>
					<li>
						<a href=""><span>生日</span>
						
						<span>1998-02-10</span></a>
						
					</li>
					<li>
						<a href=""><span>头像</span>
						
						<span>img/head%20(2).png</span></a>
						
					</li>
					<li>
						<a href=""><span>毕业院校</span>
						
						<span>许昌学院</span></a>
						
					</li>
					<li>
						<a href=""><span>职业</span>
						
						<span>学生</span></a>
						
					</li>
				</ul>
			</main>
		</div>
	</body>
</html>
